package com.bicon.botu.mall.base.rpc.service;


import com.bicon.botu.core.base.common.controller.BaseController;
import com.bicon.botu.core.base.common.entity.BaseResult;
import com.bicon.botu.mall.base.entity.DeliveryPoint;
import com.bicon.botu.mall.base.entity.LogisticsCompany;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

/**
 * 物流公司RPC
 *
 * @author liushujie
 * @date 2018/5/8 0008 下午 16:05
 */
@Service
public class LogisticsCompanyRpcService extends BaseController {

    /**
     * 获取已启用的物流公司
     * @return
     */
    @RequestMapping(value = "/enabled-list", method = RequestMethod.GET)
    public BaseResult<LogisticsCompany> enabledList(@RequestParam String id) {
        LogisticsCompany logisticsCompany = new LogisticsCompany();
        logisticsCompany.setId(id);
        return sendResult200(logisticsCompany.selectById());
    }

}
